load "header.plt"

set size 0.9, 1

xmin=0; xmax=128
ymin=0; ymax=10240
set xrange [xmin:xmax]
set yrange [ymin:ymax]


k=2
xleg=xmax*1.01
yleg=ymax*1.01

set label "n" at xleg,xmax left
set label "n log n" at xleg,xmax*log(xmax) left
set label "n^2" at xleg,0.6*xmax**2 left
# set label "n^2" at 99,yleg
set label "n^3" at 35,yleg
set label "2^n" at 11,yleg
set label "n!"  at  7,yleg
set label "n^n" at  3,yleg

fact(n) = int(n)!

set output "expon.cgm"
plot [n=xmin:xmax] \
	n title "n", \
	n*log(n) title "n log(n)", \
	0.6*n**2 title "n^2", \
	0.2*n**3 title "n^3", \
	2**n title "2^n", \
	fact(n) title "n!", \
	n**n title "n^n"

load "footer.plt"
# EOF
